*	************************************************************************
* 	File-Name: 	ReadMe.txt
*	Date:  		01/29/2019, replication.R edited on 02/08/2019 (see Note)
*	Author: 	Kennedy, Ryan, Aseem Mahajan, and Johannes Urpelainen
*	Purpose:   	ReadMe file to replicate the results of Kennedy, Ryan,  
			Aseem Mahajan, Johannes Urpelainen. "Quality of Service 
			Predicts Willingness to Pay for Household Electricity 
			Connections in Rural India," Energy Policy.
*	************************************************************************


*	************************************************************************
*	Summary
*	************************************************************************

This file explains how to replicate the results of:

Kennedy, Ryan, Aseem Mahajan, and Johannes Urpelainen. "Quality of Service Predicts Willingness to Pay for Household Electricity Connections in Rural India." Energy Policy 

The replication package contains the following files:

:: ReadMe.txt: this file.
:: replication.R: an R file that replicates Figures 1, A1-A10, and Tables 1-3 
:: (updated on 02/08/2019 to pull functions from 'dplyr' and rely on 'tidyr' 
:: rather than 'reshape2')
:: Packages.R: an R file with a function to load required packages for replication.R
:: relevant_census_data.Rda: an R dataset file needed to run replication.R
:: ALL_clean_Module.dta: an Stata dataset file needed to run replication.R
:: ALL_clean_Village12.dta: an Stata dataset file needed to run replication.R
:: selectionModel.do: a Stata do file that replicates Figures 2-3, A11 and Tables 4-5, A1
:: first_stage.csv: a CSV file needed to run selectionModel.do

*	************************************************************************
*	Instructions
*	************************************************************************

To replicate our results:
(1) Open "replication.R" in R.
(2) Modify the code where needed. The only modifications pertain to (a) installing required packages, and (b) updating the working directory.
(3) Open "selectionModel.do" in Stata.
(4) Modify the code where needed. The only modification pertains to updating the working directory.


